import React, { useContext } from 'react'
const ctx = React.createContext()
function Test (props,context){
  console.log(context)
  const value = useContext(ctx)
  return (
    <div>
        {value}
    </div>
  )
}

export default function App() {

  return (
    <ctx.Provider value='abc'>
    <Test></Test>
    </ctx.Provider>
  )
}
